/* 侦探小游戏样式文件 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 头部样式 */
h1 {
    color: #fff;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 30px;
    text-align: center;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 游戏内容区域 */
#game-container {
    padding: 30px;
}

/* 场景描述 */
.scene {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    min-height: 180px;
    border-left: 5px solid #2a5298;
    font-size: 1.1em;
    line-height: 1.7;
}

/* 角色列表 */
.characters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.character {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.character:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.character:active {
    transform: translateY(-1px);
}

/* 对话盒子 */
.dialogue-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 100px;
}

#dialogue-text {
    font-size: 1.1em;
    line-height: 1.8;
}

/* 选项按钮 */
.choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.choice-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.choice-btn:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.choice-btn:active {
    transform: translateX(2px);
}

/* 证据清单 */
.inventory {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.inventory h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.evidence-list {
    list-style-type: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.evidence-list::-webkit-scrollbar {
    width: 8px;
}

.evidence-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.evidence-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.evidence-list li {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 8px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.evidence-list li:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

/* 游戏结束画面 */
.game-over {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 15px;
    margin-top: 20px;
}

.game-over h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-over p {
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.8;
}

.game-over ul {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
    padding-left: 20px;
}

.game-over li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.restart-btn {
    background: linear-gradient(135deg, #ff512f 0%, #f09819 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 81, 47, 0.4);
    margin-top: 30px;
}

.restart-btn:hover {
    background: linear-gradient(135deg, #f09819 0%, #ff512f 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 81, 47, 0.6);
}

.restart-btn:active {
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
        padding: 20px;
    }
    
    #game-container {
        padding: 20px;
    }
    
    .scene {
        padding: 20px;
        min-height: 150px;
    }
    
    .character {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    .choice-btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    
    .game-over {
        padding: 30px 20px;
    }
    
    .game-over h2 {
        font-size: 2em;
    }
    
    .restart-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
        padding: 15px;
    }
    
    #game-container {
        padding: 15px;
    }
    
    .characters {
        gap: 10px;
    }
    
    .character {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .dialogue-box {
        padding: 15px;
    }
    
    .choice-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}